package com.hzqx.syndata.hzqx.jdjw;

import com.hzqx.syndata.hzqx.utils.ChargeFtpFileIfExistsUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author yinzhiping
 */
@RestController
public class JdjwController {
    @RequestMapping("/outfilew")
    public void outFile(HttpServletResponse response) throws IOException {
        OutputStream is = response.getOutputStream();
        String name = "jd_紫金滩_242288988_20210528093002683_TIMING.jpg";
        ChargeFtpFileIfExistsUtil.getOutFile("218.108.73.59", 5987, "jdqxj","Jdqx@4321", "/", name,is);
    }
}
